<template>
  <div>
    <!-- 面包屑 -->
    <miAn-xie :betGao="betGao"></miAn-xie>
    <el-card>
        <div id="echarts" ref="echart"></div>
    </el-card>
  </div>
</template>
<script>
    import { orders_get } from "@/http/reports/reports";
import * as echarts from 'echarts';

export default {
    
  data() {
    return {
      betGao: [
        {
          path: "/home",
          title: "首页",
        },
        {
          path: "/orders",
          title: "数据统计",
        },
        {
          path: "/orders",
          title: "数据报表",
        },
      ],
    };
  },
  mounted() {
    this.orders_getD();
  },
  methods: {
    async orders_getD() {
      let res = await orders_get();
      console.log(res);
      const echart = echarts.init(this.$refs.echart);
      echart.setOption(res.data)
    },
  },
};
</script>
<style lang="scss" scoped>
    #echarts{
        height: 500px;
    }
</style>